package com.zd.springcloud.busy;

import com.zd.springcloud.config.callback.OrderClientCallbackImpl;
import com.zd.springcloud.exception.MyGlobalExceptionHandler;
import io.seata.spring.boot.autoconfigure.SeataTCCFenceAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

@SpringBootApplication(exclude = SeataTCCFenceAutoConfiguration.class)
@EnableFeignClients(basePackages = "com.zd.springcloud.config")
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
@Import({MyGlobalExceptionHandler.class,OrderClientCallbackImpl.class})
public class BusyApplication {
    public static void main(String[] args) {
        SpringApplication.run(BusyApplication.class,args);
    }
}
